package com.chujian.Utils;


import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.Toast;

public class Util {
	public static  void showTextShort(Context context,String str){
		Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
	}
	public static  void showTextLong(Context context,String str){
		Toast.makeText(context, str, Toast.LENGTH_LONG).show();
	}
	
	public static  void confirmDialog(String title,String message,Context context) {
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setTitle(title);
        builder.setMessage(message);
        builder.setPositiveButton("确认", new DialogInterface.OnClickListener(){
            @Override
            public void onClick(DialogInterface dialog, int which){
            }
        });
        builder.show();
	}
}
